<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ page import="com.zhz.lib.project.domain.hotlink.*"%>
<%@ page import="com.zhz.lib.project.domain.news.*"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%
	String appPath = request.getContextPath();
	String allPath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort();
	pageContext.setAttribute("appPath", appPath);
	pageContext.setAttribute("allPath", allPath);
	request.setCharacterEncoding("gb2312");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>西安交通大学图书馆</title>
    <link rel="stylesheet" href="<%=appPath%>/css/blueprint/screen.css" type="text/css" media="screen, projection"/>
    <link rel="stylesheet" href="<%=appPath%>/css/blueprint/print.css" type="text/css" media="print" />
    <!--[if IE 8]><link rel="stylesheet" href="<%=appPath%>/css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
	<link href="<%=appPath%>/css/idx_xjtulib.css" rel="stylesheet" type="text/css" />
	<link href="<%=appPath%>/css/idx_home.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%=appPath%>/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="<%=appPath%>/js/lib.js"></script>
</head>
<body>
<div class="container">
		<div class="top-banner">
			<img src="image/banner.png" width="950" height="160"/>
		</div>
    <div class="top-menu" style="width:950px;">
   	 	<ul class="topfloatLeft-list" style=" float:left; padding-left:15px;">
    		<li><a href="http://www.lib.xjtu.edu.cn/lib75/english/index_en.htm">English Version</a></li>
    	</ul>
	    <ul id="social-menu">
	    	<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2679771264&site=qq&menu=yes" title="QQ在线咨询" alt="QQ在线咨询"><li class="qq"><div></div></li></a>
        	<a href="http://weibo.com/xjtulib" title="官方微博" alt="官方微博" ><li class="tsina"><div></div></li></a> 
        	<a href="/custom.do?id=304" title="RSS订阅" alt="RSS订阅" ><li class="rss"><div></div></li></a>
        	<a href="/custom.do?id=326" title="手机访问" alt="手机访问" ><li class="phone"><div></div></li></a>
	    </ul>
    </div>
    <div class="span-6">
    	<div class="title-bar ui_sr"><h4>常用链接</h4></div>
       	<ul class="menu-list"> 
			<c:forEach var="hlinklistEntrySet" items="${hlinkEntrySet}" varStatus="status">
				<li>
				<c:forEach var="link" items="${hlinklistEntrySet.value}" varStatus="status">
	       			<a href="${link.url}">${link.title}</a> 
				</c:forEach>
				</li>
			</c:forEach>
		 </ul>
        <div class="title-bar ui_sr"><h4>相关链接</h4></div>
       	<ul class="menu-list"> 
			<c:forEach var="rlinklistEntrySet" items="${rlinkEntrySet}" varStatus="status">
				<li>
				<c:forEach var="link" items="${rlinklistEntrySet.value}" varStatus="status">
	       			<a href="${link.url}">${link.title}</a> 
				</c:forEach>
				</li>
			</c:forEach>
       </ul>
    </div>
    <div class="span-18 last">
     	<div class="title-bar ui_sr">
     		<h4>最新消息</h4>
     		<div style=" vertical-align:bottom; padding-left:90px; padding-top:5px; width:55px;">
					<a href="<%=appPath%>/news.do?action=page" target="_blank">more+</a>
			</div>
     	</div>
		<div class="span-9">
       		<ul class="news-list">
				<c:forEach var="newsVO" items="${newsVOList}" varStatus="status" begin="0" step="1" end="2">
					<li><a href="<%=appPath%>/news.do?event=single&id=${newsVO.newsId}" class="new" target="_blank" title="${newsVO.title}">${newsVO.shortTitle}</a><span>${newsVO.pubDateString}</span></li>
				</c:forEach>
				<c:forEach var="newsVO" items="${newsVOList}" varStatus="status" begin="3" step="1" end="3">
					<li><a href="<%=appPath%>/news.do?event=single&id=${newsVO.newsId}" target="_blank" title="${newsVO.title}">${newsVO.shortTitle}</a><span>${newsVO.pubDateString}</span></li>
				</c:forEach>
            </ul>
        </div>
        <div class="span-9 last">
       		<ul class="news-list">
				<c:forEach var="newsVO" items="${newsVOList}" varStatus="status" begin="4" step="1" end="7">
					<li><a href="<%=appPath%>/news.do?event=single&id=${newsVO.newsId}" target="_blank" title="${newsVO.title}">${newsVO.shortTitle}</a><span>${newsVO.pubDateString}</span></li>
				</c:forEach>
            </ul>
        </div>
         <script language="javascript">
			function ShowTab(a) {
				var temp = document.getElementById("SearchTabBottom");
				temp.style.background="url('image/tab_bg"+a+".jpg')";
				}

        </script>
         <div class="cat-container" style="margin-top:10px;width:708px;">
	         <div id="SearchTabBottom" style="background:url(image/tab_bg2.jpg); width:708px; height:35px;">
		         <ul style="border-bottom:1px solid #D4D7DC;">
		         <li style="float:left;  width:50px; height:35px;"></li>
		         <li style="float:left; width:608px;">
		         <div style="width:608px; height:35px; vertical-align:bottom;" align="center"> 
		                <div id="SearchTab" style="width:600px; height:35px;  ">
		                    <ul class="search-list" style="margin-bottom: 0px;">
		                        <li id="tab1" onmousemove="ShowTab(1);"></li>
		                        <li id="tab2" onmousemove="ShowTab(2);"></li>
		                        <li id="tab3" onmousemove="ShowTab(3);"></li>
		                        <li id="tab4" onmousemove="ShowTab(4);"></li>
		                    </ul>
		                </div>
		            </div></li>
		         <li style="float:left; width:50px; height:35px;"></li>
		         </ul>
	         </div>	
        </div>
        <div class="clear cat-container" style="width:708px;">
        	<div style="border-bottom:1px solid #D4D7DC; border-left:1px solid #D4D7DC; border-right:1px solid #D4D7DC; height:116px;width:706px;" > 
	        	<div id="search-switch"  style="padding-left:40px;width: 630px;">
	        		<!-- Catalog Search Box -->
					<div class="search-box">
			            	<form action="http://innopac.lib.xjtu.edu.cn/search/X" id="guancangmulu" target="_blank">
					            <div style="margin-top:20px; height:35px;">
				                	<input type="text" name="SEARCH" class="ui-ipt-enter" id="SEARCH" />
									<input type="button" id="guancangmulubutton" class="ui-btn-submit" value="搜 索"/>
					             </div>
				            	<div class="clear" style="margin-top:0px; padding-top:0px;">
				            		<input id="timing" type="radio" name="guancang" checked="checked"/>题名
				            		<input id="guanjianci" type="radio" name="guancang" />关键词
				            		<input id="zhuti" type="radio" name="guancang" />主题
				            		<input id="zuozhe" type="radio" name="guancang" />作者
				            		<input id="isbn" type="radio" name="guancang" />ISBN/ISSN
				            		<input id="suoshuhao" type="radio" name="guancang" />索书号
					            </div>
			            	</form>
			            </div>
			            <!-- Summon Search Box -->
			          <div class="search-box">
			            	<form action="http://xjtu.summon.serialssolutions.com/za-CN/search" id="qikan" target="_blank" method="post">
				                <div style="margin-top:20px;height:35px;">
				                	<input type="text" name="s.q" class="ui-ipt-enter" id="qikanquery" />
									<input type="button" id="qikanbutton" class="ui-btn-submit" value="搜 索"/>
				                	<input type="hidden" name="action" value="quickSearch" />
				                	
				                </div>
				            	<div class="clear" style="margin-top:0px; padding-top:0px;">
				            	<table cellspacing="0" cellpadding="0" width="100%">
						        	<tbody>
							        <tr>
							            <td style="vertical-align:middle;" colspan="2">
							                	<p style="line-height: 18px;">轻松发现西安交通大学馆藏外文资源及部分中文期刊<br/>包括书刊、会议等各类资源文章级检索、全文获取和馆藏书目级检索</p>
							            </td>
							            <td>
							                <div class="HelpLink">
							                	<a style="text-decoration: none;font-size: 14px;padding-left: 2px;" href="http://xjtu.summon.serialssolutions.com/za-CN/search/advanced?advanced=true" target="_blank" >高级检索</a>
							                    <a target="_blank" href="http://xjtu.summon.serialssolutions.com/za-CN/documentation/help" title="帮助">
							                        <img height="16" width="16" src="<%=appPath%>/image/icon_help.gif" border="0" />
							                    </a>
							                </div>
							            </td>
							        </tr>
						    		</tbody>
						    	</table>
				            		
				            	</div>
			            	</form>
			            </div>
			            <!-- Super Lib Search box -->
			            <div class="search-box on">
			            	<form action="http://qw.xjtu.superlib.net/s.do"  id="tushu" target="_blank" method="get">
								<div style="margin-top:20px;height:35px;">
									<input type="text" name="sw" class="ui-ipt-enter" id="iq" />
									<input type="button" id="tushubutton" class="ui-btn-submit" value="搜 索"/>
				                	<input type="hidden" name="Field" value="all" />
				                	<input type="hidden" name="enc" value="utf-8" />
				                	<input type="hidden" name="channel" value="search" />
								</div>
								<div class="clear" style="margin-top:0px; padding-top:0px;">
								<table cellspacing="0" cellpadding="0" width="100%">
						        	<tbody>
							        <tr>
							            <td style="vertical-align:middle;" colspan="2">
							                <p style="line-height: 18px;">轻松发现西安交通大学馆藏中文资源<br/>包括中文馆藏书目信息、中文书刊、会议、标准、专利等篇名、文章级检索</p>
							            </td>
							            <td>
							                <div class="HelpLink">
							                	<a style="text-decoration: none;font-size: 14px;padding-left: 2px;" href="http://qw.xjtu.superlib.net/index.jsp?adv=true" target="_blank" >高级检索</a>
							                    <a target="_blank" href="http://qw.xjtu.superlib.net/help.htm" title="帮助">
							                        <img height="16" width="16" border="0" src="<%=appPath%>/image/icon_help.gif" />
							                    </a>
							                </div>
							            </td>
							        </tr>
						    		</tbody>
						    	</table>
									
								</div>
			            	</form>
			            </div>
			            <!-- E读 Search Box -->
			            <div class="search-box">
							<form id="indexform" name='eduform' style="margin: 0px;" action="http://www.yidu.edu.cn/saas/educhina.do" target="_blank" onsubmit="search();return false">
								<div style="margin-top:20px;height:35px;width:530px;">
									<input type="hidden" name="skey" value="0" />
				                  	 <input type="hidden" name="caliscode" value="103240" />
									<input type="hidden" name="stype" value="99" />
									<input type="hidden" name="searchsope" value="0" />
			                   		 <input id="svalue" name="svalue" class="ui-ipt-enter" type="text" onclick="clearalert();" />
										<input id="search_button" onclick="search();return false;" type="submit" class="ui-btn-submit" value="搜 索"/>
			                      </div>	
		                        <div class="clear" style="margin-top:0px; padding-top:0px;">
		                        <table cellspacing="0" cellpadding="0" width="100%">
						        	<tbody>
							        <tr>
							            <td style="vertical-align:middle;" colspan="2">
							                	<p style="line-height: 18px;">轻松发现全国高校图书馆的百万种图书、千万篇外文期刊论文，<br/>百万篇中外文学位论文，以及古籍、拓片等特色资源</p>
							            </td>
							            <td>
							                <div class="HelpLink">
							                	<a style="text-decoration: none;font-size: 14px;padding-left: 2px;" href="http://www.yidu.edu.cn/saas/pages/SearchAdvanced.jsp?caliscode=103240" target="_blank" >高级检索</a>
							                </div>
							            </td>
							        </tr>
						    		</tbody>
						    	</table>
									
								</div>			
								</form> 
			            	</div>  
			    </div>
            </div>
        </div>
        <div class="clear cat-container" style="padding-top: 16px;width:708px;" >
        			<div class="mod wgt-tab" id="ServiceTab" style="width:708px;">
								<h2 class="tab-hd tab-u-10 clearfix">
									<span class="tab-u"><a href="<%=appPath%>/custom.do?id=1"><img border="0" id="findResource" class="on" style="width:177px;" src="<%=appPath%>/image/findResource_on.png" title="查找资料" /></a></span>
									<span class="tab-u"><a href="<%=appPath%>/custom.do?id=2"><img border="0" id="navigationService" style="width:177px;" src="<%=appPath%>/image/navigationService_off.png"  title="服务导航" /></a></span>
									<span class="tab-u"><a href="<%=appPath%>/custom.do?id=3"><img border="0" id="helpInfo" style="width:177px;" src="<%=appPath%>/image/helpInfo_off.png" title="帮助信息" /></a></span>
									<span class="tab-u"><a href="<%=appPath%>/custom.do?id=4"><img border="0" id="libSummary" style="width:177px;" src="<%=appPath%>/image/libSummary_off.png" title="图书馆概况" /></a></span>
								</h2>
					<div id="serviceTabContents"class="bd display-control tab-content-fix-height" style="border-bottom:1px solid #D4D9DC; border-left:1px solid #D4D9DC; border-right: 1px solid #D4D9DC;" >	
							<c:set var="serviceCount" value="0"></c:set>
							<!-- 查找资料 Link List -->						
							<div class="tab-con current prepend-1" id="findResource-content" style="width:666px;">
								<ul class="main-list floatLeft-list">
									<c:forEach var="subCustomVO" items="${firstCustomVO.subCustomVOList}" varStatus="status">
						            	<c:choose>
						            	<c:when test="${status.index <=11}">
						            		<li><a href="<%=appPath%>/custom.do?id=${subCustomVO.customId}">${subCustomVO.title}</a></li>
						            	</c:when>
						            	<c:otherwise>
						            		<li style="display:none;" class="findResource-extra"><a href="<%=appPath%>/custom.do?id=${subCustomVO.customId}">${subCustomVO.title}</a></li>
						            	</c:otherwise>
						            	</c:choose>
						            	<c:set var="serviceCount" value="${status.index}" />		            	
						            </c:forEach>
						        </ul>
						        <c:if test="${serviceCount>11}">
						        	<div style="padding-top:100px; padding-left:630px;" id="findResource-extra-button" class="tab-extra-button">
                                    	<a href="javascript:void(0);" onclick="return showMoreTabContent('findResource-extra');">more..</a>
                                 	</div>
						        </c:if>
							</div>						
							<!-- 服务导航 Link List -->
							<div class="tab-con prepend-1" id="navigationService-content" style="width:666px;">
								<c:set var="customVO" value="${customVOList[0]}"></c:set>
								<ul class="main-list floatLeft-list">
									<c:forEach var="subCustomVO" items="${customVO.subCustomVOList}" varStatus="status">
						            	<c:choose>
						            	<c:when test="${status.index <=11}">
						            		<li><a href="<%=appPath%>/custom.do?id=${subCustomVO.customId}">${subCustomVO.title}</a></li>
						            	</c:when>
						            	<c:otherwise>
						            		<li style="display:none;" class="navigationService-extra"><a href="<%=appPath%>/custom.do?id=${subCustomVO.customId}">${subCustomVO.title}</a></li>
						            	</c:otherwise>
						            	</c:choose>
						            	<c:set var="serviceCount" value="${status.index}" />
						            </c:forEach>
						        </ul>
								 <c:if test="${serviceCount>11}">
								 	<div style="padding-top:100px; padding-left:630px;" id="navigationService-extra-button" class="tab-extra-button">
                                    	<a href="javascript:void(0);" onclick="return showMoreTabContent('navigationService-extra');">more..</a>
                                 	</div>
						        </c:if>
							</div>
							<!-- 帮助信息 Link List -->
							<div class="tab-con prepend-1" id="helpInfo-content" style="width:666px;">
								<c:set var="customVO" value="${customVOList[1]}"></c:set>
								<ul class="main-list floatLeft-list">
									<c:forEach var="subCustomVO" items="${customVO.subCustomVOList}" varStatus="status">
						            	<c:choose>
						            	<c:when test="${status.index <=11}">
						            		<li><a href="<%=appPath%>/custom.do?id=${subCustomVO.customId}">${subCustomVO.title}</a></li>
						            	</c:when>
						            	<c:otherwise>
						            		<li style="display:none;" class="helpInfo-extra"><a href="<%=appPath%>/custom.do?id=${subCustomVO.customId}">${subCustomVO.title}</a></li>
						            	</c:otherwise>
						            	</c:choose>
						            	<c:set var="serviceCount" value="${status.index}" />
							       </c:forEach>    
						        </ul>
								<c:if test="${serviceCount>11}">
									<div style="padding-top:100px; padding-left:630px;" id="helpInfo-extra-button" class="tab-extra-button">
                                    	<a href="javascript:void(0);" onclick="return showMoreTabContent('helpInfo-extra');">more..</a>
                                 	</div>
						        </c:if>
							</div>
							<!-- 图书馆概况 Link List -->
							<div class="tab-con prepend-1" id="libSummary-content" style="width:666px;">
							<ul class="main-list floatLeft-list">
								<c:forEach var="subCustomVO" items="${lastCustomVO.subCustomVOList}" varStatus="status">
					            	<c:choose>
						            	<c:when test="${status.index <=11}">
						            		<li><a href="<%=appPath%>/custom.do?id=${subCustomVO.customId}">${subCustomVO.title}</a></li>
						            	</c:when>
						            	<c:otherwise>
						            		<li style="display:none;" class="libSummary-extra"><a href="<%=appPath%>/custom.do?id=${subCustomVO.customId}">${subCustomVO.title}</a></li>
						            	</c:otherwise>
						            </c:choose>
						            <c:set var="serviceCount" value="${status.index}" />
						        </c:forEach>
					        </ul>
							<c:if test="${serviceCount>11}">
                                <div style="padding-top:100px; padding-left:630px;" id="libSummary-extra-button" class="tab-extra-button">
                                    	<a href="javascript:void(0);" onclick="return showMoreTabContent('libSummary-extra');">more..</a>
                                </div>
						     </c:if>
							</div>
						</div>
					</div>	
        </div>
       <a href="http://wap.lib.xjtu.edu.cn/" target="_blank"><img src="image/guanggao.gif" border="0"/></a>
    </div>


<jsp:include page="common/foot.jsp" flush="true"/>
</div>
<script type="text/javascript" src="js/marqueelist.js"></script>
   <script type="text/javascript">
   $(document).ready(function(){
    $(".search-list > li").mouseover(function() {
    		$(".search-list > li").removeClass("on");
    		$(this).addClass("on")
    		$("#search-switch > div.search-box").removeClass("on");
    		var currentBox=$("#search-switch > div.search-box:eq(" + $(".search-list > li").index(this) + ")")
    		currentBox.addClass("on");
    		$(currentBox).find(".ui-ipt-enter").focus();
    	});
    
    $("#ServiceTab h2 span a > img").mouseover(function() {
    	/*$(".search-list > img").attribute("src",this.)*/
    	if ($(this).attr("class") == "on") return false;
    	var origImgObj = $("#ServiceTab h2 span a").find(".on");
    	var imageName = origImgObj.attr("id")+"_off.png";
    	var tabContentId = origImgObj.attr("id")+"-content";
    	origImgObj.attr("src","image/"+imageName);
    	origImgObj.removeClass("on");
    	$("#"+tabContentId).removeClass("current");
    	$(this).addClass("on");
    	imageName = $(this).attr("id")+"_on.png";
    	$(this).attr("src","image/"+imageName);
    	$("#"+$(this).attr("id")+"-content").addClass("current");
    	$("#serviceTabContents").addClass("tab-content-fix-height");
    	$("#tab-extra-button").show();
    	});
   });
</script>
<script type="text/javascript"> 
	$(document).ready(function(){
		$("#guanjianci").click(function(){
			$("#guancangmulu").attr("action","http://innopac.lib.xjtu.edu.cn/search/X");
		});
		$("#timing").click(function(){
			$("#guancangmulu").attr("action","http://innopac.lib.xjtu.edu.cn/search*chx/t");
		});
		$("#zhuti").click(function(){
			$("#guancangmulu").attr("action","http://innopac.lib.xjtu.edu.cn/search*chx/d");
		});
		$("#zuozhe").click(function(){
			$("#guancangmulu").attr("action","http://innopac.lib.xjtu.edu.cn/search*chx/a");
		});
		$("#isbn").click(function(){
			$("#guancangmulu").attr("action","http://innopac.lib.xjtu.edu.cn/search*chx/i");
		});
		$("#suoshuhao").click(function(){
			$("#guancangmulu").attr("action","http://innopac.lib.xjtu.edu.cn/search*chx/c");
		});
	});
	$(document).ready(function(){
		$("#guancangmulubutton").click(function(){
			$("#guancangmulu").submit();
		});
		$("#qikanbutton").click(function(){
			$("#qikan").submit();
		});
		$("#tushubutton").click(function(){
			$("#tushu").submit();
		});
		$("#googlebutton").click(function(){
			$("#google").submit();
		});
		$("#innerSearchButton").click(function(){
			$("#innerSearch").submit();
		});
		
		$(".ui-ipt-enter").mouseleave(function(){
			var keyword=$(this).val();
			$(".ui-ipt-enter").each(function(){
				$(this).val(keyword);
			});
		});
	});
</script>
<!-- 超星搜索脚本-->
<script type="text/JavaScript">

var reg=/[(.|,|\"|\\?|!)。？，！“”]/g;

function clearalert()
{
	var s=document.getElementById("svalue").value;
	if(s=="请输入有意义的检索词" || s=="查找中外文图书/期刊/学位论文" )
	  document.getElementById("svalue").value="";
}

function search()
{
	
	var s=document.getElementById("svalue").value;
	


	if(s==""||s==null || s=="请输入有意义的检索词" || s=="查找中外文图书/期刊/学位论文")
	{   
		
		document.getElementById("svalue").value="请输入有意义的检索词";
		return false;
	}
	else{
		s=s.replace(reg,"");
		document.forms["eduform"].submit();
	}
}
</script>
</body>
</html>  